package com.ssy.lingxi.contract.repository;

import com.ssy.lingxi.contract.entity.ApplyAmountOrderDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * 请款单
 * @author 伍将
 * @date 2021/3/10
 * @version 2.0.0
 */
public interface ApplyAmountOrderRepository extends JpaRepository<ApplyAmountOrderDO, Long>, JpaSpecificationExecutor<ApplyAmountOrderDO> {

    List<ApplyAmountOrderDO> findAllByContractIdAndStatus(Long contractId, Integer status);
}
